/**
 * 
 *
 *  @author Konrad Paumann
 *  @author Maximilian Csuk
 *  @author Bernhard Denner
 * 
 */
package routines;

import datastructures.*;
import processors.*;

public class Routine {
	
	private String name;
	private SingleCollection commands;
	private int runtime;
	
	/**
	 * Constructs a routine
	 * name must not empty
	 * size of commands > 0
	 * runtime > 0
	 */
	public Routine(String name, SingleCollection commands, int runtime) {
		this.name = name;
		this.commands = commands;
		this.runtime = runtime;
	}
	
	/**
	 * Returns the name of the routine
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * Returns the runtime of the routine
	 * runtime > 0;
	 */
	public int getRuntime(){
			return runtime;
	}
		
	/**
	 * Returns the usedCommands
	 */
	public SingleCollection getUsedCommands(){
		return commands;
	}

}
